package com.hhs.storage.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

//所有页面的跳转都通过此类
@Controller
@Slf4j
public class WebPageController {

    //登录页
    @RequestMapping("login")
    public String login(){
        return "login";
    }

    @RequestMapping("/")
    public String login2(){
        return "login";
    }

    @RequestMapping("test")
    public String test(){
        return "test";
    }
    //主页
    @RequestMapping("go/index")
    public String index(){
        return "index";
    }
    @RequestMapping("go/menu")
    public String menu(){
        return "menu";
    }
    @RequestMapping("go/role")
    public String role(){
        return "role";
    }
    @RequestMapping("go/user")
    public String user(){
        return "user";
    }

}
